import Vue from 'vue'
import App from './App'

import uView from "uview-ui";
//引入vuex
import store from './store'
//把vuex定义成全局组件
Vue.prototype.$store = store
Vue.use(uView);

Vue.config.productionTip = false

Vue.filter('formatPhone', (num) => {
	/*var pat = /(\d{3})\d*(\d{4})/
	var b = num.toString().replace(pat, '$1****$2')*/
	return num
})

App.mpType = 'app'

const app = new Vue({
	...App,
	store
})
app.$mount()
